package cc.yugu.yhdw.common.protocol.msg05;

import cc.yugu.yhdw.common.protocol.MsgCode;
import io.netty.buffer.ByteBuf;

public class Msg051000008 extends Msg051 {

    public String cabinetId;
    public String boxNum;


    @Override
    public int getMsgCode() {
        return MsgCode.MSG_051000008.getCode();
    }

    @Override
    public void readData(ByteBuf buffer) {
        cabinetId = readString(buffer);
        boxNum = readString(buffer);
    }

    @Override
    public void writeData(ByteBuf buffer) {
        writeString(buffer, cabinetId);
        writeString(buffer, boxNum);
    }
}
